package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Point_typeBean implements Serializable,IJsonParser{

	/**
	 *  {
            "name": "惠生活",
            "region": "北京",
            "point_type_id": 1,
            "score": 18,
            "issue_type": 0,
            "brand": "惠生活品牌",
            "icon": {
                "url": "http://imgs.ykdllmyr.com/stores/2015/3/5/rBrisjXfdwMqroHZpDs8t8.jpeg",
                "file_id": 7,
                "file_path": "stores/2015/3/5/rBrisjXfdwMqroHZpDs8t8.jpeg"
            }
        }
	 */
	private static final long serialVersionUID = -8559806741657433038L;
	private String name ;
	private String region ;
	private String point_type_id ;
	private String score ;
	private String issue_type ;
	private String brand ;
	private FileBean icon ;
	public String getName() {
		return name;
	}
	public String getRegion() {
		return region;
	}
	public String getPoint_type_id() {
		return point_type_id;
	}
	public String getScore() {
		return score;
	}
	public String getIssue_type() {
		return issue_type;
	}
	public String getBrand() {
		return brand;
	}
	public FileBean getIcon() {
		return icon;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Point_typeBean.class);
		}
		return null;
	}

}
